package models

import "time"

type SysStuReward struct {
	ID int `json:"id" gorm:"primary key;AUTO_INCREMENT"`
	StuID int `json:"stu_id"`
	AwardTime time.Time `json:"award_time"`
	RewardID int `json:"reward_id"`
	RewardLevel string `json:"reward_level"`
	AwardBy string `json:"award_by"`
	Type string `json:"type"`
	Student SysStudent `gorm:"ForeignKey:StuID;AssociationForeignKey:StuID" json:"student"`
	Reward SysReward `gorm:"ForeignKey:RewardID;AssociationForeignKey:ID" json:"reward"`
}